import axios from 'axios';

//  查询学生
async function studentManage(getData) {

    let params = {

        page: getData.page,
        limit: getData.size,
        major_id : getData.major_id,
        grade : getData.grade,
        class_name : getData.class_name
    }

    try {
        const response = await axios.get('/select/student-manage', {
            params: params
        });
        
        return response.data;
    } catch (error) {
        // Handle error appropriately
        console.error('Error fetching data:', error);
        throw error; // Optionally re-throw the error
    }
}
export default studentManage;